package com.xuhaijian.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.xuhaijian.entity.OrderPayment;
import com.xuhaijian.mapper.OrderPaymentMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class OrderPaymentService {
 
    @Autowired
    private OrderPaymentMapper orderPaymentMapper;

    public List<OrderPayment> listByCondition(String orderNo) {
        LambdaQueryWrapper<OrderPayment> queryWrapper = Wrappers.lambdaQuery();
        queryWrapper.eq(OrderPayment::getOrderNo,orderNo);
        return orderPaymentMapper.selectList(queryWrapper);
    }
}